// -----------------------------------------------------------------------
//  <copyright file="ExclusionModulesAttribute.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2023 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2023-12-11 0:02</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.Builder;

/// <summary>
/// 定义模块替换，用于模块冲突时排除指定模块
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class ExclusionModulesAttribute : Attribute
{
    /// <summary>
    /// 初始化一个<see cref="ExclusionModulesAttribute"/>类型的新实例
    /// </summary>
    public ExclusionModulesAttribute(params Type[] exclusionModuleTypes)
    {
        ExclusionModuleTypes = exclusionModuleTypes;
    }

    /// <summary>
    /// 获取 当前模块要替换的模块类型集合
    /// </summary>
    public Type[] ExclusionModuleTypes { get; }
}
